from PIL import ImageEnhance
from PIL import Image
import os
import sys

im = Image.open('C:/Users/27185/Desktop/pic/grim_strengthen/image/2.bmp')
im.show()
out = ImageEnhance.Contrast(im)
out.enhance(1.3).show("30% more contrast")
out.show()